package com.itstyle.mytest.threadpoolexecutor;

/**
 * @author xianguang
 * @date 2020-01-06 13:57
 */
public class Task implements Runnable {

    private int now;

    public Task(int now) {
        this.now = now;
    }

    @Override
    public void run() {
        System.out.println("执行当前任务的线程是："+Thread.currentThread().getName());
        System.out.println("我是任务 "+now+",我在执行...");
    }
}
